function initApi() {
    return axios({
        'url': "http://localhost:8080/purse/all",
        'method': "get"
    })
}

function consume100Api(data){
    return axios({
        'url' : "http://localhost:8080/purse/consume100",
        'method' : "post",
        data
    })
}

function refund20Api(data){
    return axios({
        'url' : "http://localhost:8080/purse/refund20",
        'method' : "post",
        data
    })
}

function detailsApi(id){
    return axios({
        'url' : `http://localhost:8080/purse/details/${id}`,
        'method' : "get",
    })
}